package com.jeesite.modules.dataScreen.service;

import com.jeesite.modules.dataScreen.enums.DataTypeEnum;
import com.jeesite.modules.dataScreen.web.vo.executelaw.ExecuteLawVO;
import com.jeesite.modules.dataScreen.web.vo.roadcenter.RoadCenter15MinVO;
import com.jeesite.modules.dataScreen.web.vo.roadcenter.RoadCenter30MinVO;
import com.jeesite.modules.dataScreen.web.vo.roadcenter.RoadCenter5MinVO;
import com.jeesite.modules.dataScreen.web.vo.roadcenter.RoadCenter60MinVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author machenzhi
 * @date 2024/09/09 09:49
 */
@Service
public class RoadCenterService {

    @Autowired
    private IndustryExecutor industryExecutor;

    public RoadCenter5MinVO get5MinData() {
        RoadCenter5MinVO roadCenter5MinVO = new RoadCenter5MinVO();
        industryExecutor.execute(roadCenter5MinVO, DataTypeEnum.REAL_TIME.getCode());
        return roadCenter5MinVO;
    }

    public RoadCenter15MinVO get15MinData() {
        RoadCenter15MinVO roadCenter15MinVO = new RoadCenter15MinVO();
        industryExecutor.execute(roadCenter15MinVO, DataTypeEnum.REAL_TIME.getCode());
        return roadCenter15MinVO;
    }


    public RoadCenter30MinVO get30MinData() {
        RoadCenter30MinVO roadCenter30MinVO = new RoadCenter30MinVO();
        industryExecutor.execute(roadCenter30MinVO, DataTypeEnum.REAL_TIME.getCode());
        return roadCenter30MinVO;
    }

    public RoadCenter60MinVO get60MinData() {
        RoadCenter60MinVO roadCenter60MinVO = new RoadCenter60MinVO();
        industryExecutor.execute(roadCenter60MinVO, DataTypeEnum.REAL_TIME.getCode());
        return roadCenter60MinVO;
    }


}
